package com.mywork.mvpkodeinxml.net.service

import com.mywork.mvpkodeinxml.common.convertCommon
import com.mywork.mvpkodeinxml.net.api.CommonApi
import com.mywork.mvpkodeinxml.model.request.CommonFunc
import com.mywork.mvpkodeinxml.model.response.UserListEntity
import com.mywork.mvpkodeinxml.net.RetrofitFactory
import io.reactivex.Observable


class CommonService {

    fun getUserList(): Observable<UserListEntity> {
        return RetrofitFactory.create(CommonApi::class.java)
            .getUserList(CommonFunc("getuserlist"))
            .convertCommon(UserListEntity::class.java)
    }

}